<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>Blog</title>
	<link href="<?php echo  base_url() ?>public/css/bootstrap.min.css" rel="stylesheet">
    <link href="<?php echo  base_url() ?>public/css/bootstrap-theme.min.css" rel="stylesheet">
    <link href="<?php echo  base_url() ?>public/css/basic.css" rel="stylesheet">
    <link href="<?php echo  base_url() ?>public/css/style.css" rel="stylesheet">
</head>
<body>
	<?php $this->load->view('Header_view.php') ?>
    <div class="header_pic wd960 ml0">
    </div>
	<hr/>
	<div class="container clearfix">
		<div class="row">
			<div class="col-md-8">
						<?php
					      	foreach ($articles as $article) {
					    ?>
					    	<div>
					    		<a href="<?php echo site_url('blog_ctrl/view/'.$article['id']); ?>"><?=$article['title']?></a>
					    		
					    		<span class="pull-right"><?=$article['view']?>次阅读</span>
					    	</div>
					        <div class="item clearfix relative mt10">	
								
								<img class="item_img img-thumbnail fl" src="<?php echo  base_url().'public/'.$article['img'];?>"/>
								<p><?=$article['desc']?></p>
								<a class="item_a btn btn-success" href="<?php echo site_url('blog_ctrl/view/'.$article['id']); ?>">阅读全文</a>
								<p class="item_time fr"><?php echo date("Y-m-d H:i:s",$article['create_time'])?></p>

							</div>
					    <?php
					    }
					    ?>
			</div>
			<div class="col-md-4 mt20">
				<div class="clock" id="clock"></div>
			</div>
		</div>
	</div>


</body>
<script type="text/javascript" src="<?php echo  base_url() ?>public/clock/jquery-2.1.4.min.js"></script>
<script type="text/javascript" src="<?php echo  base_url() ?>public/clock/clock-1.1.0.min.js"></script>
<script>

    var clock = $("#clock").clock(),
        data = clock.data('clock');
</script>
</html>